package com.r2coding.article.feign;

import com.r2coding.article.to.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author:98k灬
 * @since:2022/04/24 11:46
 **/
@FeignClient("blog-system")
public interface SystemFeignService {
    // 根据用户id查询用户信息
    @GetMapping("/api/user/getById/{id}")
    User getById(@PathVariable("id") Integer id);
}
